#ifndef _CONNECTION_H_
#define _CONNECTION_H_

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <sys/un.h>
#include <unistd.h>
#include <stdlib.h>
#include <netinet/in.h>

#define QQ_SMTP_SERVER "smtp.qq.com"
#define QQ_SMTP_PROT 25

int socketfd;

int connectionToServer();
void releaseSocket();
int sendCommandAndGetRsp(const char* command, char* buf);

#endif
